'use strict';
const CACHE_NAME = 'flutter-app-cache';
const RESOURCES = {
  "/index.html": "09d928175e1fb998a04b6d174471c6b8",
"/main.dart.js": "e98804849a79c432cf8bf9cfae475c41",
"/assets/LICENSE": "f51ef26c4cb70cfabe7bd18fb8c5c192",
"/assets/images/border.png": "a94fdc2bd1b45f623a61faab89334755",
"/assets/images/icon.png": "bae2cc398bdc9c65ae73682ddc394fab",
"/assets/images/android.png": "8587993ca1c5a057e6f5fba99f955e71",
"/assets/images/ios.png": "f737a1801fd046fa81bcbc83657a17c1",
"/assets/images/bg.jpg": "ffedbf7fe58515aa72a97e3e4fe1c5ec",
"/assets/AssetManifest.json": "684f8e8a6770f113d95899803b120901",
"/assets/FontManifest.json": "01700ba55b08a6141f33e168c4a6c22f",
"/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf": "115e937bb829a890521f72d2e664b632",
"/assets/fonts/MaterialIcons-Regular.ttf": "56d3ffdef7a25659eab6a68a3fbfaf16"
};

self.addEventListener('activate', function (event) {
  event.waitUntil(
    caches.keys().then(function (cacheName) {
      return caches.delete(cacheName);
    }).then(function (_) {
      return caches.open(CACHE_NAME);
    }).then(function (cache) {
      return cache.addAll(Object.keys(RESOURCES));
    })
  );
});

self.addEventListener('fetch', function (event) {
  event.respondWith(
    caches.match(event.request)
      .then(function (response) {
        if (response) {
          return response;
        }
        return fetch(event.request, {
          credentials: 'include'
        });
      })
  );
});
